#define _CRT_SECURE_NO_WARNINGS 1

#include "ListNode.h"

int main()
{
	ListNode* pHead = ListCreate();
	ListPushBack(pHead, 1);
	ListPushBack(pHead, 2);
	ListPushBack(pHead, 3);
	ListPushBack(pHead, 4);
	ListPushBack(pHead, 5);
	ListPopBack(pHead);
	ListPushFront(pHead, 6);
	ListNode* pos = ListFind(pHead, 2);
	if (pos)
	{
		pos->data *= 5;
	}
	ListInsert(pos, 5);
	ListErase(pos);
	ListPrint(pHead);
	return 0;
}